<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>
    <title>成功提示跳转</title>
    <link href="__STATIC__/favicon.ico" type="image/x-icon" rel="shortcut icon">
    <link rel="stylesheet" type="text/css" href="__STATIC__/zui/css/zui.lite.min.css"/>
    <link type="text/css" href="__STATIC__/admin/theme/{$_theme_style|default='default'}.css" rel="stylesheet"/>
    <style>
        html {
            position: relative;
            min-height: 100%;
        }

        body {
            background-color: rgb(240, 242, 245);
            font-family: "Microsoft YaHei",
            "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji",
            "Segoe UI Emoji", "Segoe UI Symbol";
        }

        .tip_logo {
            height: 500px;

            background-image: url('https://gw.alipayobjects.com/zos/rmsportal/wZcnGqRDyhPOEYFcZDnb.svg');
            background-repeat: no-repeat;
            background-position: center;
        }

        .tip_message {
            height: 500px;

        }

        .footer {
            position: absolute;
            bottom: 0;
            width: 100%;
            /* Set the fixed height of the footer here */
            height: 40px;
            padding-top: 10px;
        }
    </style>
</head>
<body>

<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-2 tip_logo">
        </div>
        <div class="col-md-4 tip_message">
            <p class="text-success" style="margin-top: 150px; font-size: 45px;"><i
                    class="icon icon-3x icon-check-circle"></i> 操作成功</p>
            <p class="text-muted" style="font-size: 16px;">{:strip_tags($msg)}</p>
            <p class="jump" style="font-size: 16px;">
                页面自动 <a id="href" href="{$url}">跳转</a> 等待时间： <b id="wait">{$wait}</b>
            </p>


        </div>
    </div>

</div>
<div class="footer">
    <div class="text-center text-muted ">
        Copyright &copy; {:date('Y')} {:config('company_title')}
    </div>
</div>
<script type="text/javascript">
    (function () {
        var wait = document.getElementById('wait'), href = document.getElementById('href').href;
        var interval = setInterval(function () {
            var time = --wait.innerHTML;
            if (time <= 0) {
                location.href = href;
                clearInterval(interval);
            }
            ;
        }, 1000);
        window.stop = function () {
            console.log(111);
            clearInterval(interval);
        }
    })();
</script>
</body>
</html>
